{primary} Steps to generate API Key
⭕ Create an account or login into our Developer Site
⭕ Go to your Profile Page and click on Domains
⭕ Now Click on the Add Domain button on top right and enter your Domain Name
⭕ Add a plan to your domain to generate your API KEY
⭕ Copy your generated API KEY and save it for furthur use
{info} Add the following cdn to use our javascript library in your application
<script src="https://cdn.mirrar.online/js/init.min.js"></script>
{info} Add this sample code to footer of your HTML to avail instant access of the SDK in your web application
<script>
(function ($) {
"use strict";
$(document).ready(function () {
var options = {
"key": "API_KEY_HERE",
"ExID": "Parent_Container_ID", // Optional
"brandLogo": "Watermark_URL" // Optional
}
init(options);
start();
});
})(jQuery);
</script>
📝 init(options)
- to initialize the SDK and other dependancies
📝 start()
- to show the UI and virtual tryon